#include <iostream>
using namespace std;

int main() {
    char a;
    cin >> a;

    int max = 5;
    int spaceNum;
    for (int i = 1; i <= max; i=i+2)
    {
        string res;
        spaceNum = int((max - i) / 2);
        for (int j = 1; j <= spaceNum; j++)
        {
            res += " ";
        }
        for (int m = 1; m <= i; m++) {
            res += a;
        }
        for (int k = 1; k <= spaceNum; k++)
        {
            res += " ";
        }
        cout << res << endl;
    }

    for (int i = max-2; i >= 1; i=i-2)
    {
        string res;
        spaceNum = int((max - i) / 2);
        for (int j = 1; j <= spaceNum; j++)
        {
            res += " ";
        }
        for (int m = 1; m <= i; m++) {
            res += a;
        }
        for (int k = 1; k <= spaceNum; k++)
        {
            res += " ";
        }
        cout << res << endl;
    }
    
    return 0;
}